package com.bwie.publish.service.impl;

import com.bwie.common.utils.R;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.common.utils.PageUtils;
import com.bwie.common.utils.Query;

import com.bwie.publish.dao.PublishDao;
import com.bwie.publish.entity.PublishEntity;
import com.bwie.publish.service.PublishService;


@Service("publishService")
public class PublishServiceImpl extends ServiceImpl<PublishDao, PublishEntity> implements PublishService {


    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<PublishEntity> page = this.page(
                new Query<PublishEntity>().getPage(params),
                new QueryWrapper<PublishEntity>()
        );

        return new PageUtils(page);
    }


}